package com.nq.stock.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: IPO订单待补缴金额记录
 * @Author: jeecg-boot
 * @Date:   2024-12-24
 * @Version: V1.0
 */
@Data
@TableName("user_stock_subscribe_payment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="user_stock_subscribe_payment对象", description="IPO订单待补缴金额记录")
public class UserStockSubscribePayment implements Serializable {
    private static final long serialVersionUID = 1L;

    // 补缴类型 0 申购时
    public static final Integer TYPE_APPLICATION = 0;
    // 补缴类型 1  补缴时
    public static final Integer TYPE_PAYMENT = 1;
    // 补缴类型 2  中签时
    public static final Integer TYPE_SUCCESSFUL = 2;
    // 补缴类型 3  未中签
    public static final Integer TYPE_UNSUCCESSFUL = 3;


	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**申购订单id*/
	@Excel(name = "申购订单id", width = 15)
    @ApiModelProperty(value = "申购订单id")
    private Integer subscribeId;
	/**补缴金额  就是每次补缴了多少钱*/
	@Excel(name = "补缴金额  就是每次补缴了多少钱", width = 15)
    @ApiModelProperty(value = "补缴金额  就是每次补缴了多少钱")
    private BigDecimal amount;
	/**待补缴金额 就是还差多钱*/
	@Excel(name = "待补缴金额 就是还差多钱", width = 15)
    @ApiModelProperty(value = "待补缴金额 就是还差多钱")
    private BigDecimal paymentAmount;
    /**申购订单id*/
    @Excel(name = "补缴类型", width = 15)
    @ApiModelProperty(value = "补缴类型")
    private Integer type;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
